package com.guomei.bean.exam.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 考试答卷实体类
 */
@Data
public class ExamAnswer {
    /**
     * 答卷ID
     */
    private Long id;
    
    /**
     * 考试ID
     */
    private Long examId;
    
    /**
     * 报名ID
     */
    private Long enrollId;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    
    /**
     * 状态(0-进行中,1-已提交,2-已完成审核)
     */
    private Short status;
    
    /**
     * 审核人ID
     */
    private Long reviewUserId;
    
    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;
    
    /**
     * 审核结果(1-通过,2-未通过)
     */
    private Short reviewResult;
    
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
    
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    private Integer pageNum;

    private Integer pageSize;

    private String examName;

    private String userName;

    /**
     * 课程类型(1-公开课,2-付费课,3-专研班,4-专修课)
     */
    private Short courseType;

    private String courseName;
}
